package com.zzc.alfred.entity.common;

import org.apache.lucene.search.similarities.DefaultSimilarity;
import org.apache.lucene.util.BytesRef;

public class CustomSimilarity extends DefaultSimilarity {
	@Override
	public float idf(long docFreq, long numDocs) {
		return 0f;
	}

	@Override
	public float scorePayload(int doc, int start, int end, BytesRef payload) {
		return super.scorePayload(doc, start, end, payload);
	}

}
